package vip.xiaonuo.push;

import cn.hutool.core.util.ObjectUtil;
import vip.xiaonuo.hontu.config.FileServerConfig;

public interface PushJudgeImpl {

    default boolean needSend2FileServer(String url){
        System.out.println("url = " + url);
        System.out.println("ObjectUtil.isNotNull(url) = " + ObjectUtil.isNotNull(url));
        System.out.println("url.startsWith(http) = " + url.startsWith("http"));
        System.out.println("!url.startsWith(FileServerConfig.serverAddress) = " + !url.startsWith(FileServerConfig.serverAddress));
        System.out.println("FileServerConfig.serverAddress = " + FileServerConfig.serverAddress);
        return ObjectUtil.isNotNull(url) && url.startsWith("http") && !url.startsWith(FileServerConfig.serverAddress) ;
    }


}
